package com.buyantech.smweb.service;

import javacommon.base.BaseManager;
import javacommon.base.EntityDao;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.org.rapid_framework.page.Page;

import com.buyantech.smweb.dao.MessagesDao;
import com.buyantech.smweb.dao.UserDao;
import com.buyantech.smweb.model.Messages;
import com.buyantech.smweb.model.User;
import com.buyantech.smweb.vo.query.MessagesQuery;
import com.buyantech.smweb.vo.query.ObtainIntegralQuery;
import com.buyantech.smweb.vo.query.UserQuery;

/**
 * @author Albert email:albert(a)buyantech.com
 * @version 1.0
 * @date 2012-05-10
 */

@Service
@Transactional
public class MessagesManager extends BaseManager<Messages,java.lang.String>{

	private MessagesDao messagesDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	
	@Override
	public EntityDao getEntityDao() {
		return this.messagesDao;
	}

	public void setMessagesDao(MessagesDao messagesDao) {
		this.messagesDao = messagesDao;
	}

	@Transactional(readOnly=true)
	public Page findPage(MessagesQuery query) {
		return messagesDao.findPage(query);
	}
	@Transactional(readOnly=true)
	public Page searchPage(MessagesQuery query) {
		return messagesDao.searchPage(query);
	}


}
